package com.mall.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.Value;
import lombok.experimental.FieldDefaults;
import org.springframework.boot.context.properties.bind.DefaultValue;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @description: 订单分页查询参数
 * @author 勾新杰
 * @version 1.0
 * @date 2024/11/25 17:56
 */
@Data
@Schema(description = "订单分页查询参数")
public class OrderPageQueryDTO {
    @Schema(description = "页码")
    private Integer pageNo = 1;
    @Schema(description = "每页数量")
    private Integer pageSize = 10;
    @Schema(description = "订单号")
    private Long orderNo;
    @Schema(description = "订单状态")
    private Integer orderStatus;
    @Schema(description = "开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime beginTime;
    @Schema(description = "结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
}
